{{include file="header.html"}}
{{include file="menu.html"}}
{{assign var="verify" value='verify'|C}}
		<!-- 右边侧边栏 -->
		<div class="right">
			<!-- 个人信息部分 -->
			<div class="item">
				<div class="btn">
					<span class="span_t">项目管理</span>
					<div class="search">
						<input type="text" placeholder="搜索" value="{{if $keyword}}{{$keyword}}{{/if}}">
						<span class="search_icon"></span>
					</div>
					<div class="clear"></div>
				</div>
				{{if $smarty.session.member.power_1 == '2' && $smarty.session.member.power_1 == '2'}}
				<table border="1" class="item_m">
					<th style="width:50px;">序号</th>
					<th  style="width:300px;">项目名称</th>
					<th>负责人</th>
					<th>操作</th>
					{{if $result}}
					{{foreach from=$result.data item=val key=key}}
					<tr>
						<td>{{$key+1}}</td>
						<td><a href="index.php?app=Project&act=project_info&id={{$val.id}}" target="_blank">{{$val.team_name}}</a></td>
						<td><a href="index.php?app=Work&act=student_info&id={{$val.userid}}" target="_blank">{{$val.student_name}}</a></td>
						<td>
							<button class="report {{if $val.power == '0'}}applicate{{elseif $val.power == '1'}}not{{/if}}">{{if $val.power == '0'}}未同意{{elseif $val.power == '1'}}已同意{{/if}}</button>
							<button class="change"><a href="index.php?app=Project&act=project_info&id={{$val.id}}" target="_blank">详情</a></button>
						</td>
					</tr>
					{{/foreach}}
					{{/if}}
				</table>
				{{else}}
				<p class="cyds">您还不是创业导师，请前往<a href="index.php?app=work&act=tutor">创业导师申请</a>。</p>
				{{/if}}
				{{include file="page.html"}}
			</div>
		</div>
		<div class="clear"></div>
	</div>
	<!-- 回到顶部 -->
	<div class="toTop"><span>↑</span>顶部</div>
	<script type="text/javascript">
	//关键字搜索
	$(".search .search_icon").click(function(){
		searchKeyword();
	});
	
	$(".search input").keydown(function(e){
		var curkey = e.which; 
		if(curkey == 13){ 
			searchKeyword();
		}
	}); 		
	
	function searchKeyword(){
		var keyword = $.trim($(".search input").val());
	   	if(keyword==''){
	   		ui.alert('请输入要搜索的关键字!')
	   	}else{
	   		url = "{{$smarty.const.__PROJECT__}}{{$smarty.get.app}}/{{$smarty.get.act}}/?keyword="+keyword; 
	   		document.location.href = url;
	   	}
	}
	</script>
</body>
</html>